package com.yl.pattern.creatormodel.prototype.demo1;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 3:50
 * @ClassName Realizetype
 * @Description 具体的原型类
 */
public class Realizetype implements Cloneable{
    public Realizetype(){
        System.out.println("具体的原型对象创建完成！");
    }
    @Override
    protected Realizetype clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功！");
        return (Realizetype) super.clone();
    }
}
